package cate.common.table.rank.row;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;

public class RankWaterScoreRow extends ERow implements IRewardRankRow{
    public long score;

    public String rewardStr;

    public int levelLimit;

    @Override
    public void parse(XSSFRowWrap xrw) {
        super.parse(xrw);
        this.id = xrw.getInteger("ID");
        this.score = xrw.getLong("评分");
        this.rewardStr = xrw.getString("奖励");
        this.levelLimit = xrw.getInteger("等级",0);
    }

    @Override
    public int getRewardId() {
        return this.id;
    }

    @Override
    public String getRewardStr() {
        return rewardStr;
    }

    @Override
    public long getRewardValue() {
        return score;
    }

    @Override
    public int getLevelLimit() {
        return levelLimit;
    }
}
